import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/components/Home'
import Index from '@/components/mainPage/Index'
import UserList from '@/components/mainBody/UserList'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'index',
      component: Index,
      children: [
        {
          path: '/',
          name: 'UserList',
          component: UserList
        }
      ]
    },

  ]
})
